﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<script type="text/javascript">
    function displaytr() {
        document.getElementById("tr1").style.display = 'none';
    }
    function cknull() {
        var tt = document.getElementById('<%=txt到账金额.ClientID %>').value;
        if (tt == null || tt == "") { alert('请录入到账金额！'); return false; } else { return true; }
    }
    window.onload = function aa() {
        var tt = document.getElementById('<%=txt是否首期.ClientID %>').value;
        var t1 = document.getElementById('<%=CheckBox1.ClientID %>');
        var t2 = document.getElementById('tr1');
        if (tt == "1") { t1.checked = true; }
    };
    function ckMoney(obj) {
        var t01 = "_";
        var t22 = "___";
        var t0 = "ctl00";
        var t1 = "MainerRegion";
        var t2 = "ZJ_DZJEInfoControl";
        var tt = t0 + t01 + t1 + t01 + t2 + t22 + obj;
        var ctrlTemp = document.getElementById(tt);
        if (ctrlTemp != null) {
            if (isNaN(ctrlTemp.value)) {
                alert("不是一个有效的数字，请重新输入 ！");
                ctrlTemp.value = '';
            }
        }
    }
    function checkSQ() {
        var t1 = document.getElementById('<%=txt是否首期.ClientID %>');
        if (t1.value == "1") { t1.value = "0"; } else { t1.value = "1"; }
    }
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
    margin-top: 1px">
    <tr>
        <td valign="middle" height="30">
            <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left;
                color: black; text-indent: 1em;" runat="server">到账金额编辑 </font>
        </td>
    </tr>
</table>
<center>
    <table border='1' cellpadding='0' cellspacing='0' id="compensationfundestimate" style='border-collapse: collapse;
        table-layout: fixed; width: 600px; text-align: center' class="window_tab_list">
        <tr>
            <th colspan="4" style="text-align: center; line-height: 20px;">
                到账金额
            </th>
        </tr>
        <tr id="tr1">
            <td colspan="4" style="text-align: left">
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <input id="CheckBox1" name="CheckBox1" type="checkbox" onclick="checkSQ()" runat="server" />是否首期
            </td>
        </tr>
        <tr>
            <td>
                到账金额(元)
            </td>
            <td style="width: 140px;" align="left">
                <asp:TextBox ID="txt到账金额" runat="server" onchange="ckMoney('txt到账金额')" Width="100px"></asp:TextBox>
            </td>
            <td>
                到账时间
            </td>
            <td style="width: 140px;" align="left">
                <CBW:MPCalendar ID="txt到账时间" runat="server" Style="width: 100px;" />
            </td>
        </tr>
        <tr>
            <td>
                备注
            </td>
            <td style="height: 65px;" colspan="3">
                <asp:TextBox ID="txt备注" runat="server" TextMode="MultiLine" Width="99%" Height="60px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center">
                <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return cknull();" />
                &nbsp;&nbsp;
                <input id="Button1" type="button" value="返回" onclick="javascript:window.location.href=('ZJ_DZJE.aspx?ID=<%=HttpContext.Current.Request["BID"] %>&pid=<%=HttpContext.Current.Request["PID"] %>');" />
            </td>
        </tr>
    </table>
    <div style="display: none;">
        <asp:TextBox ID="txtBID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtURID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txt是否首期" runat="server"></asp:TextBox>
    </div>
</center>
